#ifndef ZIGBEE3DATACMD_H
#define ZIGBEE3DATACMD_H

#include "Command/BaseCmd.h"
#include "Protocol/ZigbeeNewControlProtocol.h"
#include "Protocol/ZigbeeConfigProtocol.h"
class Zigbee3AcceptDataCmd : public BaseCmd
{
    Q_OBJECT
public:
    Q_INVOKABLE explicit Zigbee3AcceptDataCmd(QObject *parent = 0);
    enum{FunctionCode =  ZigbeeNewControlProtocol::StateData};
    Package toPackage();
    void unPackage(Package package);


    QByteArray nwk()const;
    void setNwk(const QByteArray Data);

    QByteArray coreData()const;
    void setCoreData(const QByteArray Data);

    QByteArray Body()const;

    quint16 clusterID()const;
    void setClusterID(const quint16 Data);

    quint16 dataType()const;
    void setDataType(const quint16 Data);

    quint16 yhData();
    void setyhdata(quint16 Data);

private:
    QByteArray m_nwk;
    QByteArray m_coreData;
    QByteArray m_body;
    quint16 m_clusterID;
    quint16 m_dataType;
    quint16 m_yhdata;

};

#endif // ZIGBEE3DATACMD_H
